<%@page import="bean.boardVO"%>
<%@page import="bean.boardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>게시판 수정하기</title>
<link rel = 'stylesheet' href = "board.css">
<script src = 'board.js'></script> 

</head>
<%request.setCharacterEncoding("utf-8"); %>

<jsp:useBean id="vo" class="bean.boardVO" scope="page"/>
<jsp:setProperty property="*" name="vo"/>
<%
boardDTO dto = new boardDTO();
dto.setVo(vo);
boardVO v = dto.view();
%>

<h1> 게시글 수정 </h1>
	 <div class="list_title">
	  	<div>수정하실 내용을 입력해주세요. </div>
	 </div>
<hr>
<br>
<form action="list.jsp" name = 'modify_form' method="post" enctype="multipart/form-data">
<label class = 'lbl'>아 이 디</label>
<input type = 'text' size = '10' name ='m_id' maxlength ='20' style="margin-bottom: 3px;" value="<%=v.getM_id() %>"/><br/>
<label class = 'lbl'>비밀번호수정</label>
<input type = 'password' size = '10' name ='b_pw' maxlength ='20' style="margin-bottom: 3px;"/><br/>
<label class = 'lbl'>제 목</label>
<input type = "text" size = '60' name ='b_title' style="margin-bottom: 3px;" value="<%=v.getB_title()%>"/><br/>
<label class = 'lbl'>내 용</label><br/>
<textarea cols="80" name="b_content" rows="20" style="margin-left: 104px;" ><%=v.getB_content()%></textarea><br/>
<label class = 'lbl'>이미지</label>
<input type = "file" name ='b_image' style="margin-bottom: 3px;"/> 이전 파일 : <%=v.getB_image()%><br/>
<input type='hidden' name='b_number' value="<%=vo.getB_number()%>"/>
<input type='hidden' name='b_oriImage' value="<%=v.getB_image()%>"/>

<br>
<hr/>
<div id ="bottom" > 
	<input type ="button" 	value="새 글쓰기" 	id="btnInput">
	<input type ="button" 	value="글 삭제" 	id="btnDelete">
	<input type="button" id="btnList" value="목록으로" style="margin-right: 460px;"/>
	<input type="button" id="btnModify" value="수정완료" /></div>
</form>
<br>
</body>
<script>modifyInit();</script>
</html>